<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>跳转提示</title>
<link href="__PUBLIC__/Admin/images/Admin_css.css" type="text/css" rel="stylesheet">
<link rel="shortcut icon" href="__PUBLIC__/Admin/images/myfav.ico" type="image/x-icon" />
<import file= "Admin.js.admin,Admin.js.Jquery"/> 
<script charset="utf-8" src="__PUBLIC__/Common/artDialog/jquery.artDialog.js?skin=simple"></script>
<script charset="utf-8" src="__PUBLIC__/Common/artDialog/extend.js"></script>
<script>
$(document).ready(function(){
 artDialog.locking('解锁操作','锁屏状态，请输入密码解锁');
});
artDialog.locking = function (title,content) {
    var input;
    var value;
    return artDialog({
        id: 'locking',
        icon: 'question',
		drag: false,
		resize: false,
		title:title,
        fixed: true,
        lock: true,
        opacity: 0,
        content: [
            '<div style="margin-bottom:5px;font-size:12px">',
                content,
            '</div>',
            '<div>',
                '<input value="',
                    value,
                '" id="lockingverifyx" style="width:18em;padding:6px 4px" />',
            '</div>'
            ].join(''),
        init: function () {
            input = this.DOM.content.find('input')[0];
            input.select();
            input.focus();
			this.shake && this.shake();// 调用抖动接口
        },
        ok: function (here) {
		var xval = $('#lockingverifyx').val();
		if(xval=='')
		{
			this.shake && this.shake();// 调用抖动接口
			input.select();
			input.focus();
			return false;
		}
		else
		{
			$.ajax({
			type: "POST",
			url: '{:U('Public/lockingverify')}',
			data: "pwd="+xval,
			success: function(msg){
					//alert(msg);
					if(msg==0)
					{
						artDialog.locking('解锁操作','锁屏状态，请输入密码解锁!');
					}
					if(msg==2)
					{
						parent.parent.window.location.href='{:U('Public/loginout')}';
					}
					if(msg==1)
					{
						$.post("{:U('Public/locking')}", function(data){
						history.go(-1);
						});
					}
					}
			});
		}
        
        },
        cancel: false
    });
};
</script>
</head>
<body>
</body>
</html>